#include "stdafx.h"
#include "Golf.h"
#include <iostream>
#include <cstring>

Golf::Golf()
{
	strcpy_s(fullname, "No Name");
	handicap = 0;
}
Golf::Golf(const char * name, int hc)
{
	strcpy_s(fullname, name);
	handicap = hc;
}

const Golf & Golf::setgolf(const Golf &g)
{
	strcpy_s(fullname, g.fullname);
	handicap = g.handicap;
	return *this;
}
void Golf::showgolf() const
{
	using std::cout;
	using std::endl;
	cout <<"Golfer:" << fullname << endl;
	cout << "Handicap:" << handicap << endl;
}

Golf::~Golf()
{
}
